from rest_framework import serializers
from .models import *


class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class AreaSer(serializers.ModelSerializer):
    class Meta:
        model = Area
        fields = '__all__'


class AddressSer(serializers.ModelSerializer):
    class Meta:
        model = Address
        fields = '__all__'


class ShowAddressSer(serializers.ModelSerializer):
    provice = AreaSer()
    city = AreaSer()
    area = AreaSer()

    class Meta:
        model = Address
        fields = '__all__'

























